package com.xq.springboot;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 排除DataSourceAutoConfiguration配置数据源
 */
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@MapperScan(basePackages = {"com.xq.springboot.mapper"})
@EnableAspectJAutoProxy // 启用Aspect J自动代理
@EnableTransactionManagement // 启用事务管理器
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

}
